package abstract_factory;

import factory.Circle;
import factory.Rectangle;
import factory.Shape;

public class ShapeFactory extends AbstractFactory {
    @Override
    public Color getColor(String color) {
        return null;
    }

    @Override
    public  Shape getShape(String shape){
        if(shape.equalsIgnoreCase("RECTANGLE")){
            return new Rectangle();
        }
        else if(shape.equalsIgnoreCase("CIRCLE")){
            return new Circle();
        }
        return null;
    }
}
